package org.NooLab.glue.subscription.context;

import org.NooLab.compare.CompareIntf;
import org.NooLab.glue.components.MessageBoardFactory;

public class ComparisonFactory {

	MessageBoardFactory mbf;
	
	ComparisonIntf comparisonOrganizer=null;
	CompareIntf compareInst;
	
	public ComparisonFactory(MessageBoardFactory mbf){
		this.mbf = mbf;
	}
	
	public ComparisonIntf getComparisonOrganizer(){
		
		return comparisonOrganizer;
	}
	
	
	public ComparisonIntf createComparisonOrganizer( CompareIntf  compintf ){
		
		
		// if (comparisonOrganizer==null)
		{
			comparisonOrganizer = null;
			
			comparisonOrganizer = new Comparison( );
			comparisonOrganizer.setCompareKernel(compintf);
		}
		
		return comparisonOrganizer;
	}

	public void setCompareKernelContainer( CompareIntf compareinst){
		compareInst = compareinst;
	}
}
